package factj.proxy.proxyserver;

import android.app.Application;

import net.youmi.android.AdManager;
import net.youmi.android.offers.OffersManager;

/**
 * Created by helly on 10/21/14.
 */
public class ProxyApplication extends Application {
    public static OffersManager offersManager;

    @Override
    public void onCreate() {
        super.onCreate();
        AdManager.getInstance(this).init(getString(R.string.appid), getString(R.string.appsec), true);
        offersManager = OffersManager.getInstance(this);
        offersManager.onAppLaunch();
    }


    @Override
    public void onTerminate() {
        offersManager.onAppExit();
        super.onTerminate();
    }
}
